package com.cn.wanxi.service;

import com.cn.wanxi.dao.CompanyDao;
import com.cn.wanxi.model.CompanyModel;

public class CompanyService {
    public CompanyModel getCompanyModel() {
        CompanyModel companyModel = new CompanyModel();
        CompanyDao companyDao = new CompanyDao();
        companyModel.setAdvertisement1(companyDao.advertisement1);
        companyModel.setAdvertisement2(companyDao.advertisement2);
        companyModel.setAdvertisement3(companyDao.advertisement3);
        companyModel.setAdvertisement4(companyDao.advertisement4);
        companyModel.setAddress(companyDao.address);
        companyModel.setLinePhone(companyDao.linePhone);
        companyModel.setEmail(companyDao.email);
        return companyModel;

    }

}
